<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3c.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</h:head>
<h:body>
<h:form>
<p:panelGrid columns="2">  
    <f:facet name="header">  
        Cadastro
    </f:facet>  
  
    <h:outputLabel for="nome" value="Nome: *" />  
    <p:inputText id="nome" value="#{hospede.hospedeEntity.nome}" label="Nome" />  
  
    <h:outputLabel for="sobrenome" value="Sobrenome: *" />  
    <p:inputText id="sobrenome" value="#{hospede.hospedeEntity.sobrenome}" required="true" label="Sobrenome"/>  
  
  <h:outputLabel for="telefone" value="Telefone: *" />  
    <p:inputText id="telefone" value="#{hospede.hospedeEntity.telefone}" label="Telefone" />  
    
      <h:outputLabel for="email" value="E-mail: *" />  
    <p:inputText id="email" value="#{hospede.hospedeEntity.email}" label="E-mail" /> 
  
  <f:facet name="footer">
<p:commandButton value="Salvar" icon="ui-icon-check" action="#{hospede.createhospede()}"/>
</f:facet>
 
</p:panelGrid> 
</h:form>
  

</h:body>
</html>